package view;

import communication.Observer;
import communication.Subject;
import communication.TempData;

public class CurrentConditionDisplay implements Display, Observer
{
	private TempData tD;
	
	public CurrentConditionDisplay(Subject subject) 
	{
		subject.addObserver(this);
	}

	@Override
	public void display() 
	{
		System.out.println(tD);
	}

	@Override
	public void update(TempData tD) 
	{
		this.tD = tD;
		display();
	}


}
